package com.yl.common

import com.baomidou.mybatisplus.annotation.EnumValue
import com.fasterxml.jackson.annotation.JsonValue

/**
 *
 * create by 2021/5/14.
 * @author udbjqr
 */
enum class Flag (@EnumValue val value: Int, @JsonValue val show:String){
	UNKNOWN(0,"未知"),
	NEW_ADD(1,"新增");
	companion object {
		fun getEnum(d: Int?): Flag {
			return values().find { it.value == (d ?: return UNKNOWN) } ?: UNKNOWN
		}
	}
}
